<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改</title> <link rel="stylesheet" th:href="@{/css/index.css}">
</head>
<body>
<div class="login-container">
    <h2>修改 <b th:text="${user.username}"></b> 用户信息</h2>
    <form th:action="@{/user/edit}" method="post">
        <input type="hidden" name="id" th:value="${user.id}" readonly/>
        <div class="form-group">
            <label for="name">真实姓名:</label>
            <input type="text" id="name" name="name" required th:value="${user.name}">
        </div>
        <div class="form-group">
            <p class="error" th:text="${message}"></p>
            <br/>
            <input type="submit" value="提交">
        </div>
    </form>
</div>
</body>
</html>